I = Input
R = Reading functions
The IR10EdgTmInp function detects the rising edge of a digital input.
In particular:
IR10EdgTmInp (Input, FronteUp, FronteDw, timeReset)
Parameters:
| IN/OUT | VARIABLE TYPE | EXAMPLE NAME | DIM | |
|---|---|---|---|---|
| IN | INPUT / SYSTEM | Input | F | Digital input or variable you want to “capture” the front |
| OUT | GLOBAL | FronteUp | F | Flag on the rising edge |
| OUT | GLOBAL | FronteDn | F | Flag on the falling edge |
| IN | CONST SYSTEM | timeReset | L | Waiting time before reset capture flag fronts (msec) |
Nell'esempio l'uscita “ofUscita” viene settata sul fronte di salita dell'ingresso “Ingresso” e viene resettata sul fronte di discesa dello stesso ingresso.
IR10EdgTmInp (Ingresso, FronteUp, FronteDw, timeReset)
IF FronteUp
SETOUT ofUscita
ENDIF
IF FronteDw
RESOUT ofUscita
ENDIF